//
// Created by 123 on 2025/1/8.
//
#include "list"
#include "algorithm"
#include "iostream"
using namespace std;

void printList(const list<int>& li){
    for(list<int>::const_iterator it=li.begin();it!=li.end();it++){
        cout << *it << " ";
    }
    cout << endl;
}

void test(){
    list<int> l1;
    l1.push_back(10);
    l1.push_back(20);
    l1.push_back(30);
    l1.push_back(40);
    printList(l1);

    list<int> l2(l1.begin(),l1.end());
    printList(l2);

    list<int> l3(l2);
    printList(l3);

    list<int> l4(10,100);
    printList(l4);

}

int main132(){
    test();
    return 0;
}
